package com.guli.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.common.utils.PageUtils;
import com.guli.product.entity.CategoryEntity;
import com.guli.product.vo.Catelog2Vo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zzb
 * @email 1626131069@qq.com
 * @date 2023-10-21 10:18:56
 */
public interface CategoryService extends IService<CategoryEntity> {
    List<CategoryEntity> listWithTree();
    @Transactional
    void updateRelationCategory(CategoryEntity categoryEntity);
    @Transactional
    void removeByIdsWithRelation(List<Long> ids);
    List<CategoryEntity> getLevel1Catgories();
    Map<String, List<Catelog2Vo>> getCatelogFromWithRedisson();
}

